package com.lyc.campuslife.service;

import com.lyc.campuslife.dto.Result;
import com.lyc.campuslife.entity.Blog;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lyc
 * @since 2024-07-04
 */
public interface IBlogService extends IService<Blog> {
    Result saveBlog(Blog blog);

    Result likeBlog(Long id, Long userId);

    Result queryBlogLikes(Long id);

    Result queryHotBlog(Integer current, Long userId);

    Result queryBlogById(Long id, Long userId);

    Result queryBlogOfFollow(Long max, Integer offset, Long userId);
}
